var http = require('http');
var url = require('url');
var fs = require('fs');
function start(route, handle){
	var server = http.createServer(function(request, socket){
		var pathname = url.parse(request.url).pathname;
		// route(socket, pathname, handle);
		socket.writeHead(200, {"Content-Type": "text/html"});
		
		socket.write('Hi!');
		socket.end();
	});
	server.listen(8888, function(){
		console.log('server bound!')
		// console.log(request);
	});
}

exports.start = start;
start()